<template>
	<page-meta :page-style="themeColor"></page-meta>
	<view class="u-bg-fff  u-content">
		<!-- <uni-navbar :isNeedBack="true"></uni-navbar> -->
		<!-- <view class="u-m-30" v-html="articleData.article_content">
		</view> -->
    <u-parse class="u-m-30"  :html="articleData.article_content"></u-parse>
    
	</view>
</template>

<script>
	export default{
		data(){
			return{
				articleData:null,
			}
		},
		onLoad(options){
			this.getArticleData(options.id)
		},
		methods:{
			getArticleData(val){
				this.$api.sendRequest({
					url: "/api/article/info",
					data:{
						article_id: val
					},
					success: res=>{
						if(res.code == 0 && res.data){
							this.articleData = res.data
						}
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.u-content {
  img {
    width: 100%;
    object-fit: cover;
  }
}
</style>